package cn.ubeta.b2c.widget.ptr;

import android.content.Context;
import android.util.AttributeSet;

import in.srain.cube.views.ptr.PtrFrameLayout;

/**
 * Created by Denny on 16/6/13.
 */
public class PtrCommonLayout extends PtrFrameLayout {
    public PtrCommonLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    private void init(Context context) {
        PtrRefreshHeader ptrHeader = new PtrRefreshHeader(context);
        setHeaderView(ptrHeader);
        addPtrUIHandler(ptrHeader);
    }
}
